﻿using Sino.Tms.Primitives;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Repositories.Models
{

    public class PaymentHistory
    {

        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string PaymentHistoryId { get; set; }

        public string SettleBillId { get; set; }

        public string SettleBillCode { get; set; }

        public string CostId { get; set; }

        public string CarrierOrderId { get; set; }

        public double Price { get; set; }

        public string UserId { get; set; }

        public FeeStatus Status { get; set; }

        public FeeType Type { get; set; }

        public PaymentResultStatus PaymentResultStatus { get; set; }

        public DateTime LastPaymentTime { get; set; }

        public DateTime SucceededTime { get; set; }

        public virtual ApplicationUser User { get; set; }

        public PaymentHistory()
        {
            this.PaymentHistoryId = Guid.NewGuid().ToString();
        }

    }

}